JsWebSocketSession

internal class JsWebSocketSession(val coroutineContext: CoroutineContext, val websocket: WebSocket) : DefaultWebSocketSession

Constructors

Link copied to clipboard
constructor(coroutineContext: CoroutineContext, websocket: WebSocket)

Properties

Link copied to clipboard
private val _closeReason: CompletableDeferred<CloseReason>
Link copied to clipboard
private val _incoming: Channel<Frame>
Link copied to clipboard
private val _outgoing: Channel<Frame>
Link copied to clipboard
open override val closeReason: Deferred<CloseReason?>
Link copied to clipboard
Link copied to clipboard
open override val extensions: List<WebSocketExtension<*>>
Link copied to clipboard
open override val incoming: ReceiveChannel<Frame>
Link copied to clipboard
open override var masking: Boolean
Link copied to clipboard
open override var maxFrameSize: Long
Link copied to clipboard
open override val outgoing: SendChannel<Frame>
Link copied to clipboard
open override var pingIntervalMillis: Long
Link copied to clipboard
open override var timeoutMillis: Long
Link copied to clipboard
private val websocket: WebSocket

Functions

Link copied to clipboard
internal fun CoroutineScope.channelFromStream(stream: ReadableStream<Uint8Array>): ByteReadChannel
Link copied to clipboard
open suspend override fun flush()
Link copied to clipboard
Link copied to clipboard
internal suspend fun CoroutineScope.readBody(response: Response): ByteReadChannel
Link copied to clipboard
internal suspend fun CoroutineScope.readBodyBrowser(response: Response): ByteReadChannel
Link copied to clipboard
open suspend fun send(frame: Frame)
Link copied to clipboard
open override fun start(negotiatedExtensions: List<WebSocketExtension<*>>)
Link copied to clipboard
open override fun terminate()